<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateAssetsImportHistorysTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('assets_import_historys', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('batch_no', 191)->nullable();
			$table->string('task_no', 191)->nullable();
			$table->integer('done_count')->unsigned()->default(0);
			$table->string('file_url', 191)->nullable();
			$table->integer('success_count')->unsigned()->default(0);
			$table->integer('diversity_count')->unsigned()->default(0);
			$table->integer('error_count')->unsigned()->default(0);
			$table->integer('count')->unsigned()->default(0);
			$table->float('consuming_time')->default(0.00);
			$table->float('used_memory')->default(0.00);
			$table->text('content', 65535)->nullable();
			$table->integer('user_id')->unsigned()->default(0);
			$table->timestamps();
			$table->softDeletes();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
        Schema::drop('assets_import_historys');
	}

}
